home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 15 / 3 / DISK1537.ZIP / DUALS.DOC < prev    next >
Text File  |  1988-12-07  |  3KB  |  64 lines

  1.  
  2.  
  3. DUAL SCREEN PROGRAMS
  4. ====================
  5.  
  6. The programs SWAP.COM,  SCREEN.COM and DUALS.COM are intended for 
  7. use  with a dual screen system.   That is a system that has  BOTH 
  8. the  mono (or mono-graphics) card and the color graphics  adapter 
  9. (CGA)  card  installed.   You may wonder why one should do  this?  
  10. Well  ...  for someone like myself,  who's constantly  developing 
  11. programs  for the IBM-PC,  it allows me to test programs  written 
  12. for  the  different video interfaces simply by  swapping  screens 
  13. using the SWAP command.  Some programs have even been written for 
  14. dual screen use.  One, which is useful to me, is Microsoft's CODE 
  15. VIEW.   I  can now debug a graphics program,  with  it's  display 
  16. being  on  the  color monitor whilst CODE VIEW displays  all  the 
  17. program  lines  and  register contents  etc.  on  the  monochrome 
  18. screen.   Other programs, such as AUTOCAD, can do the same thing.  
  19. Graphics  can  be displayed on the color screen  whilst  text  is 
  20. entered on the mono screen.
  21.  
  22. One  of the problems encounted with the standard IBM-PC system is 
  23. that it does not initialize both screens when  powering-up.   The 
  24. SCREEN  program  can  be inserted in your  AUTOEXEC.BAT  file  to 
  25. provide  this  initialization and blanking of screens  (including 
  26. turning off the blinking cursor) automatically.
  27.  
  28. The SWAP command allows you to swap from one screen to the other.  
  29. This  command automatically determines what screen is being  used 
  30. and  swaps to the other.   The originating screen is cleared  and 
  31. its  cursor is blanked,  whilst the destination screen is cleared 
  32. and  its cursor turned on.   i.e.  You always know  which  screen 
  33. you're on by the blinking cursor!
  34.  
  35. The DUALS program was written to allow the two screens to be used 
  36. from  a  GWBASIC  or BASICA program as no  programming  langauage 
  37. (that I'm aware of) supports dual screen operation.   DUALS is  a 
  38. memory resident program that should only be executed ONCE.  After 
  39. it  has been executed,  invoke GWBASIC and you will find that you 
  40. can simply swap from one screen to the other by selecting  either 
  41. the text mode (0),  black & white (0) for the the mono screen and 
  42. text  mode  (0),  color enabled (1) for the color  screen.   e.g. 
  43. execute SCREEN 0,0 for mono and SCREEN 0,1 for color.  By-the-way 
  44. selecting  any graphics mode (1 or 2) switches  automatically  to 
  45. the  color graphics screen.   The destination screen is  blanked.  
  46. This  allows information to be written to one screen then you can 
  47. change to the other and write more information (allowing text  on 
  48. one  screen and graphics on the other for example).
  49.  
  50. One  important  feature of DUALS is that it has been designed  to 
  51. allow  you  to 'fool' GWBASIC into believing that it  is  in  the 
  52. graphics  mode  whilst  text i/o is being conducted on  the  mono 
  53. screen.   Simply invoke the graphics mode required (i.e.  1 or 2) 
  54. then execute SHELL "SWAP" (make sure command.com and swap.com are 
  55. available).   The  graphics screen will be blanked and  then  the 
  56. cursor  will  re-appear  on the monoscreen.   You can  now  enter 
  57. graphics commands directly and watch what they do on the graphics 
  58. screen  (without  annoying  text  appearing).   It's  great  from 
  59. demonstrating  and  experimenting with the graphics  commands  in 
  60. BASIC.
  61.  
  62. (C) COPYRIGHT 1988,PROCON SOFTWARE,BOX 43,ESSENDON 3040,AUSTRALIA
  63.  
  64.